<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改造句管理')" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-dictsentence-edit" th:object="${ciSentence}">
            <input name="id" th:field="*{id}" type="hidden">
            <div class="form-group">    
                <label class="col-sm-3 control-label">词：</label>
                <div class="col-sm-8">
                    <input name="ci" th:field="*{ci}" class="form-control" type="text" style="pointer-events: none;">
                </div>
            </div>
            <div class="form-group">    
                <label class="col-sm-3 control-label">造句：</label>
                <div class="col-sm-8">
                    <textarea name="content" class="form-control" th:field="*{content}"  rows="10"></textarea>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <script type="text/javascript">
        var prefix = ctx + "dict/dictsentence";
        $("#form-dictsentence-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/edit", $('#form-dictsentence-edit').serialize());
            }
        }
    </script>
</body>
</html>